//产品数据
class ProductItemModel{
  String desc;//产品描述
  String type;//新老款
  String name;//产品名称
  String imageUrl;
  String point;

  ProductItemModel({this.desc, this.type, this.name, this.imageUrl, this.point});

  factory ProductItemModel.fromJson(dynamic json){
    return ProductItemModel(
      desc: json['desc'],
      type: json['type'],
      name: json['name'],
      imageUrl: json['imageUrl'],
      point: json['point']
    );
  }


}
//产品列表数据
class ProductListModel{
  List<ProductItemModel> data;

  ProductListModel(this.data);
  factory ProductListModel.fromJson(List json){
    return ProductListModel(
      json.map((i) => ProductItemModel.fromJson((i))).toList()
    );
  }

}